import request from "@/utils/request";

// 查询企业管理列表
export function listCompany(query) {
  return request({
    url: "/system/company/list",
    method: "get",
    params: query,
  });
}

// 查询企业管理详细
export function getCompany(id) {
  return request({
    url: "/system/company/" + id,
    method: "get",
  });
}

// 新增企业管理
export function addCompany(data) {
  return request({
    url: "/system/company",
    method: "post",
    data: data,
  });
}

// 修改企业管理
export function updateCompany(data) {
  return request({
    url: "/system/company",
    method: "put",
    data: data,
  });
}

// 删除企业管理
export function delCompany(id) {
  return request({
    url: "/system/company/" + id,
    method: "delete",
  });
}

// 企业授权
export function agentCompany(data) {
  return request({
    url: "/system/company/agent",
    method: "put",
    data: data,
  });
}
